import ArticleChartPreview from '../preview'
import ArticleChartConfig from '../config'
import { DRAG_TYPE } from '../../../../dnd/drag_type'
import { nanoid } from 'nanoid'

const ArticleChartScheme = {
  meta: {
    id: nanoid(),
    parent: null,
    // key: Math.random(),
    sort: 0,
    name: 'ArticleChart',
    title: '文章图表',
    type: DRAG_TYPE.custom,
    componentPreview: ArticleChartPreview,
    componentConfig: ArticleChartConfig
  },
  config: {
    attr: {
      title: '文章数量',
      boundaryGap: false,
      type: 'line',
    },
    style: {
      height: '300px',
      width: '100%'
    }
  },
  data: {
    raw: {
      list: []
    },
    context: null
  }
}

export default ArticleChartScheme;